﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_KhachHang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvNhanVien")]
        private ADVObjects _AdvNhanVien;
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("C1DockingTabPage3")]
        private C1DockingTabPage _C1DockingTabPage3;
        [AccessedThroughProperty("C1FlexGrid1")]
        private C1.Win.C1FlexGrid.C1FlexGrid _C1FlexGrid1;
        [AccessedThroughProperty("CboGiaban")]
        private ComboBox _CboGiaban;
        [AccessedThroughProperty("CboKhuVuc")]
        private ComboBox _CboKhuVuc;
        [AccessedThroughProperty("CboLoaiKhachHang")]
        private ComboBox _CboLoaiKhachHang;
        [AccessedThroughProperty("CboNganh")]
        private ComboBox _CboNganh;
        [AccessedThroughProperty("CboQuocGia")]
        private ComboBox _CboQuocGia;
        [AccessedThroughProperty("CboTinhThanh")]
        private ComboBox _CboTinhThanh;
        [AccessedThroughProperty("CKActive")]
        private CheckBox _CKActive;
        [AccessedThroughProperty("CKCungCap")]
        private CheckBox _CKCungCap;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdAddDiaChi")]
        private Button _CmdAddDiaChi;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdChiTiet")]
        private Button _CmdChiTiet;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdDelDiaChi")]
        private Button _CmdDelDiaChi;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdRefesh")]
        private Button _CmdRefesh;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("GroupBox3")]
        private GroupBox _GroupBox3;
        [AccessedThroughProperty("GroupBox4")]
        private GroupBox _GroupBox4;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label12")]
        private Label _Label12;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label15")]
        private Label _Label15;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label17")]
        private Label _Label17;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label21")]
        private Label _Label21;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label38")]
        private Label _Label38;
        [AccessedThroughProperty("Label39")]
        private Label _Label39;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtDiaChi")]
        private TextBox _TxtDiaChi;
        [AccessedThroughProperty("TxtDiaChiGiaoHang")]
        private TextBox _TxtDiaChiGiaoHang;
        [AccessedThroughProperty("TxtDienThoai")]
        private TextBox _TxtDienThoai;
        [AccessedThroughProperty("TxtEmail")]
        private TextBox _TxtEmail;
        [AccessedThroughProperty("TxtFax")]
        private TextBox _TxtFax;
        [AccessedThroughProperty("TxtGhichu")]
        private TextBox _TxtGhichu;
        [AccessedThroughProperty("TxtHanNo")]
        private C1NumericEdit _TxtHanNo;
        [AccessedThroughProperty("TxtHanThanhToan")]
        private C1NumericEdit _TxtHanThanhToan;
        [AccessedThroughProperty("TxtMa")]
        private TextBox _TxtMa;
        [AccessedThroughProperty("TxtMasoThue")]
        private TextBox _TxtMasoThue;
        [AccessedThroughProperty("TxtTenAnh")]
        private TextBox _TxtTenAnh;
        [AccessedThroughProperty("TxtTenViet")]
        private TextBox _TxtTenViet;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("TxtWebsite")]
        private TextBox _TxtWebsite;
        [AccessedThroughProperty("VSDiaChi")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSDiaChi;
        [AccessedThroughProperty("VSDoiTuongLienHe")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSDoiTuongLienHe;
        private DataView cFrmData;
        public string cFrmKhoa;
        private string cFrmKhoaOld;
        public string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        public object objCall;
        private clsDMDoiTuong objDMKH;
        private clsDMLienHeDoiTuong objDMLHDT;
        private string pKhoaDoiTuong;

        public Frm_KhachHang()
        {
            base.KeyDown += new KeyEventHandler(this.Frm_KhachHang_KeyDown);
            base.Load += new EventHandler(this.Frm_KhachHang_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmKhoaOld = "";
            this.cFrmKhoa = "";
            this.pKhoaDoiTuong = "";
            this.cFrmTask = "";
            this.mAllowEdit = true;
            this.mAllowDel = false;
            this.objDMKH = new clsDMDoiTuong();
            this.objDMLHDT = new clsDMLienHeDoiTuong();
            this.InitializeComponent();
        }

        private void CboQuocGia_SelectedValueChanged(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboQuocGia.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                BuildComboModule.BuildCombo(this.CboTinhThanh, modGeneral.ListDanhMuc.TinhThanh, false, Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(" KhoaQuocGia = '", this.CboQuocGia.SelectedValue), "'")), "");
            }
        }

        public bool CheckIvalid()
        {
            if (this.TxtMa.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập m\x00e3!", ""));
                this.TxtMa.Focus();
                return false;
            }
            if (this.objDMKH.TrungMa(this.TxtMa.Text.Trim(), this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("M\x00e3 n\x00e0y đ\x00e3 tồn tại, bạn phải nhập m\x00e3 kh\x00e1c!", ""));
                this.TxtMa.Focus();
                return false;
            }
            if ((this.TxtTenViet.Text.Trim() == "") & (this.TxtTenAnh.Text.Trim() == ""))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00ean!", ""));
                this.TxtTenViet.Focus();
                return false;
            }
            return true;
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            this.ToolStrip1.Focus();
            if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.EmptyData();
            this.EnableControl = true;
        }

        private void CmdAddDiaChi_Click(object sender, EventArgs e)
        {
            if (this.VSDiaChi.Rows.Count == 1)
            {
                this.VSDiaChi.AddItem("");
            }
            else if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDiaChi[this.VSDiaChi.Rows.Count - 1, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.VSDiaChi.AddItem("");
            }
        }

        private void CmdAddRow_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DMLienHeDoiTuong.cFrmKhoaDoiTuong = this.cFrmKhoa;
            MyProject.Forms.Frm_DMLienHeDoiTuong.ShowDialog();
            this.LoadLienHeDoiTuong();
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                if (this.objDMKH.WasUsed(this.cFrmKhoa))
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00f4ng tin n\x00e0y đ\x00e3 được sử dụng, bạn kh\x00f4ng thể x\x00f3a!", ""));
                }
                else if (LVYModule.ConfirmDelete("") && this.objDMKH.DelData(this.cFrmKhoa))
                {
                    this.EmptyData();
                    this.cFrmKhoa = "";
                    this.EnableControl = false;
                }
            }
        }

        private void CmdDelDiaChi_Click(object sender, EventArgs e)
        {
            if (((this.VSDiaChi.Rows.Count != 1) && (this.VSDiaChi.Row > 0)) && (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDiaChi[this.VSDiaChi.Row, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "0000000000"))
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDiaChi[this.VSDiaChi.Row, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.VSDiaChi.RemoveItem(this.VSDiaChi.Row);
                }
                else if (this.objDMKH.DelDiaChiGiaoHang(Conversions.ToString(this.VSDiaChi[this.VSDiaChi.Row, 0])))
                {
                    this.VSDiaChi.RemoveItem(this.VSDiaChi.Row);
                }
            }
        }

        private void CmdDelRow_Click(object sender, EventArgs e)
        {
            if (((this.VSDoiTuongLienHe.Rows.Count != 1) && (this.VSDoiTuongLienHe.Row > 0)) && this.objDMLHDT.Delete(Conversions.ToString(this.VSDoiTuongLienHe[this.VSDoiTuongLienHe.Row, 0]), this.cFrmKhoa))
            {
                this.VSDoiTuongLienHe.RemoveItem(this.VSDoiTuongLienHe.Row);
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            this.EnableControl = true;
            this.cFrmTask = "U";
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdHelp_Click(object sender, EventArgs e)
        {
            LVYModule.ShowHelp(@"DANHMUCDUNGCHUNG\DANHMUC\KHACHHANG.mht");
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid())
            {
                clsDMDoiTuong objDMKH = this.objDMKH;
                objDMKH.Khoa = this.cFrmKhoa;
                objDMKH.Ma = this.TxtMa.Text;
                objDMKH.KhoaNganh = Conversions.ToString(this.CboNganh.SelectedValue);
                objDMKH.KhoaKhuVuc = Conversions.ToString(this.CboKhuVuc.SelectedValue);
                objDMKH.TenViet = this.TxtTenViet.Text;
                objDMKH.TenAnh = this.TxtTenAnh.Text;
                objDMKH.DiaChi = this.TxtDiaChi.Text;
                objDMKH.DienThoai = this.TxtDienThoai.Text;
                objDMKH.Fax = this.TxtFax.Text;
                objDMKH.Email = this.TxtEmail.Text;
                objDMKH.Website = this.TxtWebsite.Text;
                objDMKH.MaSoThue = this.TxtMasoThue.Text;
                if (this.CKCungCap.CheckState == CheckState.Checked)
                {
                    objDMKH.Loai = "CS";
                }
                else
                {
                    objDMKH.Loai = "C";
                }
                objDMKH.GhiChu = this.TxtGhichu.Text;
                objDMKH.HanThanhToan = Conversions.ToInteger(this.TxtHanThanhToan.Text);
                objDMKH.GioiHanNo = Conversions.ToDouble(this.TxtHanNo.Text);
                objDMKH.KhoaLoaiKhachHang = Conversions.ToString(this.CboLoaiKhachHang.SelectedValue);
                objDMKH.KhoaNhanVienQuanLy = this.AdvNhanVien.Value;
                objDMKH.DiaChiGiaoHang = this.TxtDiaChiGiaoHang.Text;
                objDMKH.KhoaLoaiGia = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboGiaban.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString();
                objDMKH.KhoaQuocGia = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboQuocGia.SelectedValue), "", modGeneral.TypeOfValue.String));
                objDMKH.KhoaTinhThanh = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboTinhThanh.SelectedValue), "", modGeneral.TypeOfValue.String));
                if (this.CKActive.CheckState == CheckState.Checked)
                {
                    objDMKH.Active = 1;
                }
                else
                {
                    objDMKH.Active = 0;
                }
                if (objDMKH.Save(this.cFrmTask))
                {
                    objDMKH = null;
                    this.EnableControl = false;
                    if (this.objCall != null)
                    {
                        NewLateBinding.LateSet(this.objCall, null, "ValueReturn", new object[] { this.cFrmKhoa }, null, null);
                        this.Dispose();
                    }
                }
            }
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoaOld, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.cFrmKhoa = this.cFrmKhoaOld;
                this.ShowData(this.cFrmKhoaOld);
            }
            this.EnableControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void EmptyData()
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.cFrmKhoa = modGeneral.CreatKey("DM_DoiTuong", 10, "DT");
            this.cFrmTask = "I";
            this.TxtMa.Text = "";
            this.TxtTenViet.Text = "";
            this.TxtTenAnh.Text = "";
            this.TxtDiaChi.Text = "";
            this.TxtDienThoai.Text = "";
            this.TxtEmail.Text = "";
            this.TxtWebsite.Text = "";
            this.TxtFax.Text = "";
            this.TxtHanNo.Value = 0;
            this.TxtHanThanhToan.Value = 0;
            this.TxtMasoThue.Text = "";
            this.TxtDiaChiGiaoHang.Text = "";
            this.TxtGhichu.Text = "";
            this.CboKhuVuc.SelectedValue = "";
            this.CboNganh.SelectedValue = "";
            this.CboGiaban.SelectedValue = "";
            this.AdvNhanVien.Value = "";
            this.TxtMa.Focus();
        }

        private void Frm_KhachHang_KeyDown(object sender, KeyEventArgs e)
        {
            Keys keyCode = e.KeyCode;
            if (keyCode == Keys.F1)
            {
                LVYModule.ShowHelp(@"DANHMUCDUNGCHUNG\DANHMUC\KHACHHANG.mht");
            }
            else if (keyCode == Keys.F2)
            {
                if (this.CmdEdit.Enabled)
                {
                    this.CmdEdit_Click(this, e);
                }
            }
            else if (keyCode == Keys.F8)
            {
                if (this.CmdAdd.Enabled)
                {
                    this.CmdAdd_Click(this, e);
                }
            }
            else if (keyCode == Keys.F9)
            {
                if (this.CmdDel.Enabled)
                {
                    this.CmdDel_Click(this, e);
                }
            }
            else if (keyCode == Keys.F10)
            {
                if (this.CmdSave.Enabled)
                {
                    this.CmdSave_Click(this, e);
                }
            }
            else if (keyCode == Keys.F11)
            {
                if (this.CmdUnsave.Enabled)
                {
                    this.CmdUnsave_Click(this, e);
                }
            }
            else if (keyCode == Keys.F12)
            {
                if (this.CmdPrint.Enabled)
                {
                    this.CmdPrint_Click(this, e);
                }
            }
            else if ((keyCode == Keys.Escape) && this.CmdExit.Enabled)
            {
                this.CmdExit_Click(this, e);
            }
        }

        private void Frm_KhachHang_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                this.Cursor = Cursors.Default;
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboNganh, modGeneral.ListDanhMuc.NganhKinhDoanh, false, "", "");
                BuildComboModule.BuildCombo(this.CboKhuVuc, modGeneral.ListDanhMuc.KhuVuc, false, "", "");
                BuildComboModule.BuildCombo(this.CboLoaiKhachHang, modGeneral.ListDanhMuc.LoaiKhachHang, false, "", "");
                BuildComboModule.BuildCombo(this.CboGiaban, modGeneral.ListDanhMuc.LoaiGiaBan, false, "", "");
                BuildComboModule.BuildCombo(this.CboQuocGia, modGeneral.ListDanhMuc.QuocGia, false, "", "");
                this.EnableControl = false;
                if (this.cFrmKhoa.Trim() != "")
                {
                    this.ShowData(this.cFrmKhoa);
                }
                if (this.cFrmTask == "I")
                {
                    this.CmdAdd_Click(this, e);
                }
                if (this.cFrmTask == "U")
                {
                    this.CmdAdd_Click(this, e);
                    this.EnableControl = true;
                }
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                this.TxtDenNgay.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_KhachHang));
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdPrint = new ToolStripButton();
            this.CmdFind = new ToolStripButton();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            this.GroupBox4 = new GroupBox();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.VSDoiTuongLienHe = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.GroupBox3 = new GroupBox();
            this.CboGiaban = new ComboBox();
            this.Label39 = new Label();
            this.Label1 = new Label();
            this.TxtHanThanhToan = new C1NumericEdit();
            this.AdvNhanVien = new ADVObjects();
            this.TxtHanNo = new C1NumericEdit();
            this.Label19 = new Label();
            this.Label16 = new Label();
            this.Label17 = new Label();
            this.GroupBox2 = new GroupBox();
            this.CKCungCap = new CheckBox();
            this.TxtWebsite = new TextBox();
            this.Label3 = new Label();
            this.TxtDiaChiGiaoHang = new TextBox();
            this.Label38 = new Label();
            this.Label6 = new Label();
            this.TxtEmail = new TextBox();
            this.Label12 = new Label();
            this.TxtFax = new TextBox();
            this.TxtDienThoai = new TextBox();
            this.Label10 = new Label();
            this.TxtDiaChi = new TextBox();
            this.Label9 = new Label();
            this.GroupBox1 = new GroupBox();
            this.TxtGhichu = new TextBox();
            this.Label18 = new Label();
            this.CboTinhThanh = new ComboBox();
            this.Label14 = new Label();
            this.CboQuocGia = new ComboBox();
            this.Label5 = new Label();
            this.TxtMasoThue = new TextBox();
            this.Label4 = new Label();
            this.CKActive = new CheckBox();
            this.CboLoaiKhachHang = new ComboBox();
            this.CboNganh = new ComboBox();
            this.CboKhuVuc = new ComboBox();
            this.Label15 = new Label();
            this.Label8 = new Label();
            this.Label13 = new Label();
            this.Label11 = new Label();
            this.TxtTenAnh = new TextBox();
            this.Label7 = new Label();
            this.TxtTenViet = new TextBox();
            this.Label2 = new Label();
            this.TxtMa = new TextBox();
            this.VSDiaChi = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.CmdDelDiaChi = new Button();
            this.CmdAddDiaChi = new Button();
            this.C1FlexGrid1 = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1 = new Panel();
            this.CmdChiTiet = new Button();
            this.CmdRefesh = new Button();
            this.TxtDenNgay = new DateTimePicker();
            this.TxtTuNgay = new DateTimePicker();
            this.Label20 = new Label();
            this.Label21 = new Label();
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.C1DockingTabPage3 = new C1DockingTabPage();
            this.ToolStrip1.SuspendLayout();
            this.GroupBox4.SuspendLayout();
            this.VSDoiTuongLienHe.BeginInit();
            this.GroupBox3.SuspendLayout();
            ((ISupportInitialize) this.TxtHanThanhToan).BeginInit();
            ((ISupportInitialize) this.TxtHanNo).BeginInit();
            this.GroupBox2.SuspendLayout();
            this.GroupBox1.SuspendLayout();
            this.VSDiaChi.BeginInit();
            this.Panel2.SuspendLayout();
            this.C1FlexGrid1.BeginInit();
            this.Panel1.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.C1DockingTabPage3.SuspendLayout();
            this.SuspendLayout();
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdPrint, this.CmdFind, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp });
            Point point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            Size size = new Size(0x2e7, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0x99;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.CmdPrint.Visible = false;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdFind.Visible = false;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.White;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x48, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "Trợ gi\x00fap";
            this.GroupBox4.BackColor = Color.Transparent;
            this.GroupBox4.Controls.Add(this.CmdDelRow);
            this.GroupBox4.Controls.Add(this.CmdAddRow);
            this.GroupBox4.Controls.Add(this.VSDoiTuongLienHe);
            point = new Point(3, 0x162);
            this.GroupBox4.Location = point;
            this.GroupBox4.Name = "GroupBox4";
            size = new Size(0x2df, 0x8b);
            this.GroupBox4.Size = size;
            this.GroupBox4.TabIndex = 0x9c;
            this.GroupBox4.TabStop = false;
            this.GroupBox4.Text = "Li\x00ean hệ";
            this.CmdDelRow.Image = (Image) manager.GetObject("CmdDelRow.Image");
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x61, 0x73);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(0x53, 0x16);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 0x9b;
            this.CmdDelRow.Text = "&X\x00f3a d\x00f2ng";
            this.CmdDelRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = (Image) manager.GetObject("CmdAddRow.Image");
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(4, 0x73);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x56, 0x16);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 0x9a;
            this.CmdAddRow.Text = "Th\x00eam d\x00f2ng";
            this.CmdAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.VSDoiTuongLienHe.AllowEditing = false;
            this.VSDoiTuongLienHe.AutoResize = false;
            this.VSDoiTuongLienHe.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSDoiTuongLienHe.ColumnInfo = "5,0,0,0,0,85,Columns:0{Caption:\"Khoa\";Visible:False;}\t1{Width:184;Caption:\"T\x00ean\";}\t2{Width:172;Caption:\"Chức danh\";}\t3{Width:111;Caption:\"Điện thọai\";}\t4{Caption:\"Email\";}\t";
            this.VSDoiTuongLienHe.ExtendLastCol = true;
            point = new Point(3, 0x12);
            this.VSDoiTuongLienHe.Location = point;
            this.VSDoiTuongLienHe.Name = "VSDoiTuongLienHe";
            this.VSDoiTuongLienHe.Rows.Count = 1;
            this.VSDoiTuongLienHe.Rows.DefaultSize = 0x11;
            size = new Size(0x2d9, 0x61);
            this.VSDoiTuongLienHe.Size = size;
            this.VSDoiTuongLienHe.StyleInfo = manager.GetString("VSDoiTuongLienHe.StyleInfo");
            this.VSDoiTuongLienHe.TabIndex = 0x99;
            this.VSDoiTuongLienHe.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.GroupBox3.BackColor = Color.Transparent;
            this.GroupBox3.Controls.Add(this.CboGiaban);
            this.GroupBox3.Controls.Add(this.Label39);
            this.GroupBox3.Controls.Add(this.Label1);
            this.GroupBox3.Controls.Add(this.TxtHanThanhToan);
            this.GroupBox3.Controls.Add(this.AdvNhanVien);
            this.GroupBox3.Controls.Add(this.TxtHanNo);
            this.GroupBox3.Controls.Add(this.Label19);
            this.GroupBox3.Controls.Add(this.Label16);
            this.GroupBox3.Controls.Add(this.Label17);
            point = new Point(3, 0x115);
            this.GroupBox3.Location = point;
            this.GroupBox3.Name = "GroupBox3";
            size = new Size(0x2de, 0x4a);
            this.GroupBox3.Size = size;
            this.GroupBox3.TabIndex = 0x9b;
            this.GroupBox3.TabStop = false;
            this.GroupBox3.Text = "Điều khoản b\x00e1n h\x00e0ng";
            this.CboGiaban.FormattingEnabled = true;
            point = new Point(0x1d3, 20);
            this.CboGiaban.Location = point;
            this.CboGiaban.Name = "CboGiaban";
            size = new Size(0x106, 0x15);
            this.CboGiaban.Size = size;
            this.CboGiaban.TabIndex = 0x12;
            this.Label39.AutoSize = true;
            point = new Point(0x177, 0x18);
            this.Label39.Location = point;
            this.Label39.Name = "Label39";
            size = new Size(0x41, 13);
            this.Label39.Size = size;
            this.Label39.TabIndex = 0x9d;
            this.Label39.Text = "Loại gi\x00e1 b\x00e1n";
            this.Label1.AutoSize = true;
            point = new Point(0xd4, 0x33);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x24, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x9e;
            this.Label1.Text = "(ng\x00e0y)";
            this.TxtHanThanhToan.BorderStyle = BorderStyle.FixedSingle;
            this.TxtHanThanhToan.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x6c, 0x30);
            this.TxtHanThanhToan.Location = point;
            this.TxtHanThanhToan.Name = "TxtHanThanhToan";
            Padding padding = new Padding(1);
            this.TxtHanThanhToan.Padding = padding;
            size = new Size(0x67, 20);
            this.TxtHanThanhToan.Size = size;
            this.TxtHanThanhToan.TabIndex = 0x11;
            this.TxtHanThanhToan.Tag = null;
            this.TxtHanThanhToan.TextAlign = HorizontalAlignment.Right;
            this.TxtHanThanhToan.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtHanThanhToan.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtHanThanhToan.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.AdvNhanVien.Conditions = "";
            this.AdvNhanVien.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(0x6c, 0x15);
            this.AdvNhanVien.Location = point;
            this.AdvNhanVien.Name = "AdvNhanVien";
            this.AdvNhanVien.ReadOnly = false;
            size = new Size(0x102, 20);
            this.AdvNhanVien.Size = size;
            this.AdvNhanVien.TabIndex = 0x10;
            this.AdvNhanVien.UpperText = true;
            this.AdvNhanVien.Value = "";
            this.AdvNhanVien.WidthCode = 80;
            this.TxtHanNo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtHanNo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x1d3, 0x30);
            this.TxtHanNo.Location = point;
            this.TxtHanNo.Name = "TxtHanNo";
            padding = new Padding(1);
            this.TxtHanNo.Padding = padding;
            size = new Size(0x6c, 20);
            this.TxtHanNo.Size = size;
            this.TxtHanNo.TabIndex = 0x13;
            this.TxtHanNo.Tag = null;
            this.TxtHanNo.TextAlign = HorizontalAlignment.Right;
            this.TxtHanNo.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtHanNo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtHanNo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label19.AutoSize = true;
            point = new Point(13, 0x18);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(0x61, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 0x9c;
            this.Label19.Text = "Nh\x00e2n vi\x00ean theo d\x00f5i";
            this.Label16.AutoSize = true;
            point = new Point(0x178, 0x33);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            size = new Size(0x3d, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0x9b;
            this.Label16.Text = "Giới hạn nợ";
            this.Label17.AutoSize = true;
            point = new Point(14, 0x33);
            this.Label17.Location = point;
            this.Label17.Name = "Label17";
            size = new Size(0x51, 13);
            this.Label17.Size = size;
            this.Label17.TabIndex = 0x9a;
            this.Label17.Text = "Hạn thanh to\x00e1n";
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.CKCungCap);
            this.GroupBox2.Controls.Add(this.TxtWebsite);
            this.GroupBox2.Controls.Add(this.Label3);
            this.GroupBox2.Controls.Add(this.TxtDiaChiGiaoHang);
            this.GroupBox2.Controls.Add(this.Label38);
            this.GroupBox2.Controls.Add(this.Label6);
            this.GroupBox2.Controls.Add(this.TxtEmail);
            this.GroupBox2.Controls.Add(this.Label12);
            this.GroupBox2.Controls.Add(this.TxtFax);
            this.GroupBox2.Controls.Add(this.TxtDienThoai);
            this.GroupBox2.Controls.Add(this.Label10);
            this.GroupBox2.Controls.Add(this.TxtDiaChi);
            this.GroupBox2.Controls.Add(this.Label9);
            point = new Point(3, 0x9a);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x2dd, 120);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 0x9a;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Li\x00ean lạc";
            this.CKCungCap.AutoSize = true;
            point = new Point(0x1d2, 0x60);
            this.CKCungCap.Location = point;
            this.CKCungCap.Name = "CKCungCap";
            size = new Size(0x98, 0x11);
            this.CKCungCap.Size = size;
            this.CKCungCap.TabIndex = 0x9f;
            this.CKCungCap.Text = "Đồng thời l\x00e0 nh\x00e0 cung cấp";
            this.CKCungCap.UseVisualStyleBackColor = true;
            point = new Point(0x6b, 0x5e);
            this.TxtWebsite.Location = point;
            this.TxtWebsite.Name = "TxtWebsite";
            size = new Size(0x102, 20);
            this.TxtWebsite.Size = size;
            this.TxtWebsite.TabIndex = 15;
            this.Label3.AutoSize = true;
            point = new Point(0x10, 0x61);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x2e, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x9e;
            this.Label3.Text = "Website";
            point = new Point(0x6b, 0x2b);
            this.TxtDiaChiGiaoHang.Location = point;
            this.TxtDiaChiGiaoHang.Multiline = true;
            this.TxtDiaChiGiaoHang.Name = "TxtDiaChiGiaoHang";
            size = new Size(0x26d, 0x13);
            this.TxtDiaChiGiaoHang.Size = size;
            this.TxtDiaChiGiaoHang.TabIndex = 11;
            this.Label38.AutoSize = true;
            point = new Point(14, 0x2e);
            this.Label38.Location = point;
            this.Label38.Name = "Label38";
            size = new Size(90, 13);
            this.Label38.Size = size;
            this.Label38.TabIndex = 0x9c;
            this.Label38.Text = "Địa chỉ giao h\x00e0ng";
            this.Label6.AutoSize = true;
            point = new Point(0xde, 0x47);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x18, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x9b;
            this.Label6.Text = "Fax";
            point = new Point(0x1d2, 0x44);
            this.TxtEmail.Location = point;
            this.TxtEmail.Name = "TxtEmail";
            size = new Size(0x106, 20);
            this.TxtEmail.Size = size;
            this.TxtEmail.TabIndex = 14;
            this.Label12.AutoSize = true;
            point = new Point(0x173, 0x47);
            this.Label12.Location = point;
            this.Label12.Name = "Label12";
            size = new Size(0x20, 13);
            this.Label12.Size = size;
            this.Label12.TabIndex = 0x9a;
            this.Label12.Text = "Email";
            point = new Point(0x102, 0x44);
            this.TxtFax.Location = point;
            this.TxtFax.Name = "TxtFax";
            size = new Size(0x6b, 20);
            this.TxtFax.Size = size;
            this.TxtFax.TabIndex = 13;
            point = new Point(0x6b, 0x44);
            this.TxtDienThoai.Location = point;
            this.TxtDienThoai.Name = "TxtDienThoai";
            size = new Size(0x67, 20);
            this.TxtDienThoai.Size = size;
            this.TxtDienThoai.TabIndex = 12;
            this.Label10.AutoSize = true;
            point = new Point(14, 0x47);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            size = new Size(0x37, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 0x99;
            this.Label10.Text = "Điện thoại";
            point = new Point(0x6b, 0x12);
            this.TxtDiaChi.Location = point;
            this.TxtDiaChi.Multiline = true;
            this.TxtDiaChi.Name = "TxtDiaChi";
            size = new Size(0x26d, 0x13);
            this.TxtDiaChi.Size = size;
            this.TxtDiaChi.TabIndex = 10;
            this.Label9.AutoSize = true;
            point = new Point(14, 0x15);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            size = new Size(40, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x98;
            this.Label9.Text = "Địa chỉ";
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.TxtGhichu);
            this.GroupBox1.Controls.Add(this.Label18);
            this.GroupBox1.Controls.Add(this.CboTinhThanh);
            this.GroupBox1.Controls.Add(this.Label14);
            this.GroupBox1.Controls.Add(this.CboQuocGia);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.TxtMasoThue);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.CKActive);
            this.GroupBox1.Controls.Add(this.CboLoaiKhachHang);
            this.GroupBox1.Controls.Add(this.CboNganh);
            this.GroupBox1.Controls.Add(this.CboKhuVuc);
            this.GroupBox1.Controls.Add(this.Label15);
            this.GroupBox1.Controls.Add(this.Label8);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.Label11);
            this.GroupBox1.Controls.Add(this.TxtTenAnh);
            this.GroupBox1.Controls.Add(this.Label7);
            this.GroupBox1.Controls.Add(this.TxtTenViet);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.TxtMa);
            point = new Point(3, 3);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x2dd, 0x95);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0x99;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Th\x00f4ng tin chung";
            point = new Point(0x6b, 0x7b);
            this.TxtGhichu.Location = point;
            this.TxtGhichu.Name = "TxtGhichu";
            size = new Size(0x102, 20);
            this.TxtGhichu.Size = size;
            this.TxtGhichu.TabIndex = 4;
            this.Label18.AutoSize = true;
            point = new Point(10, 0x7b);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x2c, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0xa2;
            this.Label18.Text = "Ghi ch\x00fa";
            this.CboTinhThanh.FormattingEnabled = true;
            point = new Point(0x1d2, 0x7b);
            this.CboTinhThanh.Location = point;
            this.CboTinhThanh.Name = "CboTinhThanh";
            size = new Size(0x106, 0x15);
            this.CboTinhThanh.Size = size;
            this.CboTinhThanh.TabIndex = 9;
            this.Label14.AutoSize = true;
            point = new Point(0x173, 0x7f);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(0x3a, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 160;
            this.Label14.Text = "Tỉnh th\x00e0nh";
            this.CboQuocGia.FormattingEnabled = true;
            point = new Point(0x1d2, 0x61);
            this.CboQuocGia.Location = point;
            this.CboQuocGia.Name = "CboQuocGia";
            size = new Size(0x106, 0x15);
            this.CboQuocGia.Size = size;
            this.CboQuocGia.TabIndex = 8;
            this.Label5.AutoSize = true;
            point = new Point(0x173, 0x65);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(50, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x9e;
            this.Label5.Text = "Quốc gia";
            point = new Point(0x6b, 0x61);
            this.TxtMasoThue.Location = point;
            this.TxtMasoThue.MaxLength = 14;
            this.TxtMasoThue.Name = "TxtMasoThue";
            size = new Size(0x67, 20);
            this.TxtMasoThue.Size = size;
            this.TxtMasoThue.TabIndex = 3;
            this.Label4.AutoSize = true;
            point = new Point(9, 0x63);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x3f, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x9c;
            this.Label4.Text = "M\x00e3 số  thuế";
            this.CKActive.AutoSize = true;
            this.CKActive.Checked = true;
            this.CKActive.CheckState = CheckState.Checked;
            point = new Point(240, 0x16);
            this.CKActive.Location = point;
            this.CKActive.Name = "CKActive";
            size = new Size(0x38, 0x11);
            this.CKActive.Size = size;
            this.CKActive.TabIndex = 0x9a;
            this.CKActive.Text = "Active";
            this.CKActive.UseVisualStyleBackColor = true;
            this.CboLoaiKhachHang.FormattingEnabled = true;
            point = new Point(0x1d2, 0x47);
            this.CboLoaiKhachHang.Location = point;
            this.CboLoaiKhachHang.Name = "CboLoaiKhachHang";
            size = new Size(0x106, 0x15);
            this.CboLoaiKhachHang.Size = size;
            this.CboLoaiKhachHang.TabIndex = 7;
            this.CboNganh.FormattingEnabled = true;
            point = new Point(0x1d2, 0x13);
            this.CboNganh.Location = point;
            this.CboNganh.Name = "CboNganh";
            size = new Size(0x106, 0x15);
            this.CboNganh.Size = size;
            this.CboNganh.TabIndex = 5;
            this.CboKhuVuc.FormattingEnabled = true;
            point = new Point(0x1d2, 0x2d);
            this.CboKhuVuc.Location = point;
            this.CboKhuVuc.Name = "CboKhuVuc";
            size = new Size(0x106, 0x15);
            this.CboKhuVuc.Size = size;
            this.CboKhuVuc.TabIndex = 6;
            this.Label15.AutoSize = true;
            point = new Point(0x173, 0x4b);
            this.Label15.Location = point;
            this.Label15.Name = "Label15";
            size = new Size(50, 13);
            this.Label15.Size = size;
            this.Label15.TabIndex = 0x99;
            this.Label15.Text = "Loại h\x00ecnh";
            this.Label8.AutoSize = true;
            point = new Point(0x173, 0x31);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x2f, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x98;
            this.Label8.Text = "Khu vực";
            this.Label13.AutoSize = true;
            point = new Point(0x173, 0x16);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x27, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x97;
            this.Label13.Text = "Ng\x00e0nh";
            this.Label11.AutoSize = true;
            point = new Point(9, 0x16);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x52, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x93;
            this.Label11.Text = "M\x00e3 kh\x00e1ch h\x00e0ng";
            point = new Point(0x6b, 0x47);
            this.TxtTenAnh.Location = point;
            this.TxtTenAnh.Name = "TxtTenAnh";
            size = new Size(0x102, 20);
            this.TxtTenAnh.Size = size;
            this.TxtTenAnh.TabIndex = 2;
            this.Label7.AutoSize = true;
            point = new Point(9, 0x4a);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x54, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x92;
            this.Label7.Text = "T\x00ean (Tiếng Anh)";
            point = new Point(0x6b, 0x2d);
            this.TxtTenViet.Location = point;
            this.TxtTenViet.Name = "TxtTenViet";
            size = new Size(0x102, 20);
            this.TxtTenViet.Size = size;
            this.TxtTenViet.TabIndex = 1;
            this.Label2.AutoSize = true;
            point = new Point(9, 0x2f);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x53, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x91;
            this.Label2.Text = "T\x00ean (Tiếng Việt)";
            point = new Point(0x6b, 0x13);
            this.TxtMa.Location = point;
            this.TxtMa.Name = "TxtMa";
            size = new Size(0x67, 20);
            this.TxtMa.Size = size;
            this.TxtMa.TabIndex = 0;
            this.VSDiaChi.AutoResize = false;
            this.VSDiaChi.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSDiaChi.ColumnInfo = "2,0,0,0,0,85,Columns:0{Caption:\"Khoa\";Visible:False;}\t1{Width:96;Caption:\"Địa chỉ giao h\x00e0ng\";}\t";
            this.VSDiaChi.Dock = DockStyle.Fill;
            this.VSDiaChi.ExtendLastCol = true;
            point = new Point(0, 0);
            this.VSDiaChi.Location = point;
            this.VSDiaChi.Name = "VSDiaChi";
            this.VSDiaChi.Rows.Count = 1;
            this.VSDiaChi.Rows.DefaultSize = 0x11;
            size = new Size(0x2e5, 0x1d4);
            this.VSDiaChi.Size = size;
            this.VSDiaChi.StyleInfo = manager.GetString("VSDiaChi.StyleInfo");
            this.VSDiaChi.TabIndex = 0x9d;
            this.VSDiaChi.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.Controls.Add(this.CmdDelDiaChi);
            this.Panel2.Controls.Add(this.CmdAddDiaChi);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x1d4);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x2e5, 0x1c);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0;
            this.CmdDelDiaChi.Image = (Image) manager.GetObject("CmdDelDiaChi.Image");
            this.CmdDelDiaChi.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x62, 3);
            this.CmdDelDiaChi.Location = point;
            this.CmdDelDiaChi.Name = "CmdDelDiaChi";
            size = new Size(0x53, 0x16);
            this.CmdDelDiaChi.Size = size;
            this.CmdDelDiaChi.TabIndex = 0x9d;
            this.CmdDelDiaChi.Text = "&X\x00f3a d\x00f2ng";
            this.CmdDelDiaChi.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelDiaChi.UseVisualStyleBackColor = true;
            this.CmdAddDiaChi.Image = (Image) manager.GetObject("CmdAddDiaChi.Image");
            this.CmdAddDiaChi.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(5, 3);
            this.CmdAddDiaChi.Location = point;
            this.CmdAddDiaChi.Name = "CmdAddDiaChi";
            size = new Size(0x56, 0x16);
            this.CmdAddDiaChi.Size = size;
            this.CmdAddDiaChi.TabIndex = 0x9c;
            this.CmdAddDiaChi.Text = "Th\x00eam d\x00f2ng";
            this.CmdAddDiaChi.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddDiaChi.UseVisualStyleBackColor = true;
            this.C1FlexGrid1.AllowEditing = false;
            this.C1FlexGrid1.AutoResize = false;
            this.C1FlexGrid1.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.C1FlexGrid1.ColumnInfo = manager.GetString("C1FlexGrid1.ColumnInfo");
            this.C1FlexGrid1.Dock = DockStyle.Fill;
            this.C1FlexGrid1.ExtendLastCol = true;
            point = new Point(0, 30);
            this.C1FlexGrid1.Location = point;
            this.C1FlexGrid1.Name = "C1FlexGrid1";
            this.C1FlexGrid1.Rows.Count = 1;
            this.C1FlexGrid1.Rows.DefaultSize = 0x11;
            size = new Size(0x2e5, 0x1d2);
            this.C1FlexGrid1.Size = size;
            this.C1FlexGrid1.StyleInfo = manager.GetString("C1FlexGrid1.StyleInfo");
            this.C1FlexGrid1.TabIndex = 0x9c;
            this.C1FlexGrid1.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdChiTiet);
            this.Panel1.Controls.Add(this.CmdRefesh);
            this.Panel1.Controls.Add(this.TxtDenNgay);
            this.Panel1.Controls.Add(this.TxtTuNgay);
            this.Panel1.Controls.Add(this.Label20);
            this.Panel1.Controls.Add(this.Label21);
            this.Panel1.Dock = DockStyle.Top;
            point = new Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x2e5, 30);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x9d;
            this.CmdChiTiet.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.CmdChiTiet.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x28f, 2);
            this.CmdChiTiet.Location = point;
            this.CmdChiTiet.Name = "CmdChiTiet";
            size = new Size(0x4d, 0x18);
            this.CmdChiTiet.Size = size;
            this.CmdChiTiet.TabIndex = 70;
            this.CmdChiTiet.Text = "&Chi tiết";
            this.CmdChiTiet.UseVisualStyleBackColor = true;
            this.CmdRefesh.FlatStyle = FlatStyle.System;
            point = new Point(0x162, 3);
            this.CmdRefesh.Location = point;
            this.CmdRefesh.Name = "CmdRefesh";
            size = new Size(0x17, 0x16);
            this.CmdRefesh.Size = size;
            this.CmdRefesh.TabIndex = 0x45;
            this.CmdRefesh.Text = "...";
            this.CmdRefesh.UseVisualStyleBackColor = true;
            this.TxtDenNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x105, 4);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x5b, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x42;
            this.TxtTuNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x5c, 4);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x56, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 0x41;
            DateTime time = new DateTime(0x7d7, 11, 1, 0, 0, 0, 0);
            this.TxtTuNgay.Value = time;
            this.Label20.AutoSize = true;
            this.Label20.BackColor = Color.Transparent;
            point = new Point(0xc1, 8);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(0x35, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 0x44;
            this.Label20.Text = "Đến ng\x00e0y";
            this.Label21.AutoSize = true;
            this.Label21.BackColor = Color.Transparent;
            point = new Point(12, 8);
            this.Label21.Location = point;
            this.Label21.Name = "Label21";
            size = new Size(0x2e, 13);
            this.Label21.Size = size;
            this.Label21.TabIndex = 0x43;
            this.Label21.Text = "Từ ng\x00e0y";
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage3);
            this.C1DockingTab1.Dock = DockStyle.Fill;
            point = new Point(0, 0x19);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            size = new Size(0x2e7, 0x20a);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 0x9b;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.GroupBox4);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox1);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox3);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox2);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x2e5, 0x1f0);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Th\x00f4ng tin kh\x00e1ch h\x00e0ng";
            this.C1DockingTabPage2.Controls.Add(this.VSDiaChi);
            this.C1DockingTabPage2.Controls.Add(this.Panel2);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x2e5, 0x1f0);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 1;
            this.C1DockingTabPage2.Text = "Địa chỉ giao h\x00e0ng";
            this.C1DockingTabPage3.Controls.Add(this.C1FlexGrid1);
            this.C1DockingTabPage3.Controls.Add(this.Panel1);
            this.C1DockingTabPage3.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage3.Location = point;
            this.C1DockingTabPage3.Name = "C1DockingTabPage3";
            size = new Size(0x2e5, 0x1f0);
            this.C1DockingTabPage3.Size = size;
            this.C1DockingTabPage3.TabIndex = 2;
            this.C1DockingTabPage3.Text = "Nghiệp vụ ph\x00e1t sinh";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x2e7, 0x223);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.C1DockingTab1);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.KeyPreview = true;
            this.Name = "Frm_KhachHang";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "DM-0006";
            this.Text = "DANH MUC KHACH HANG";
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.GroupBox4.ResumeLayout(false);
            this.VSDoiTuongLienHe.EndInit();
            this.GroupBox3.ResumeLayout(false);
            this.GroupBox3.PerformLayout();
            ((ISupportInitialize) this.TxtHanThanhToan).EndInit();
            ((ISupportInitialize) this.TxtHanNo).EndInit();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.VSDiaChi.EndInit();
            this.Panel2.ResumeLayout(false);
            this.C1FlexGrid1.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.C1DockingTabPage2.ResumeLayout(false);
            this.C1DockingTabPage3.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadDiaChiGiaoHang(string pKhoa)
        {
            int num = 0;
            DataTable listDiaChiGiaoHang = this.objDMKH.GetListDiaChiGiaoHang(pKhoa);
            this.VSDiaChi.Rows.Count = 1;
            C1.Win.C1FlexGrid.C1FlexGrid vSDiaChi = this.VSDiaChi;
            int num2 = listDiaChiGiaoHang.Rows.Count - 1;
            for (num = 0; num <= num2; num++)
            {
                vSDiaChi.AddItem("");
                vSDiaChi[vSDiaChi.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(listDiaChiGiaoHang.Rows[num][0]);
                vSDiaChi[vSDiaChi.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(listDiaChiGiaoHang.Rows[num][1]);
            }
            vSDiaChi = null;
        }

        public void LoadLienHeDoiTuong()
        {
            this.VSDoiTuongLienHe.Rows.Count = 1;
            DataTable contactor = this.objDMKH.GetContactor(this.cFrmKhoa);
            if ((contactor != null) && (contactor.Rows.Count != 0))
            {
                int num2 = contactor.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    C1.Win.C1FlexGrid.C1FlexGrid vSDoiTuongLienHe = this.VSDoiTuongLienHe;
                    vSDoiTuongLienHe.AddItem("");
                    vSDoiTuongLienHe[vSDoiTuongLienHe.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(contactor.Rows[i]["Khoa"]);
                    vSDoiTuongLienHe[vSDoiTuongLienHe.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(contactor.Rows[i]["Ten"]);
                    vSDoiTuongLienHe[vSDoiTuongLienHe.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(contactor.Rows[i]["ChucDanh"]);
                    vSDoiTuongLienHe[vSDoiTuongLienHe.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(contactor.Rows[i]["DienThoai"]);
                    vSDoiTuongLienHe[vSDoiTuongLienHe.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(contactor.Rows[i]["Email"]);
                    vSDoiTuongLienHe = null;
                }
            }
        }

        public void ShowData(string pKhoa)
        {
            this.VSDoiTuongLienHe.Rows.Count = 1;
            if (LVYModule.ReturnIfNull(pKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                clsDMDoiTuong objDMKH = this.objDMKH;
                if (objDMKH.Load(pKhoa))
                {
                    this.cFrmKhoa = objDMKH.Khoa;
                    this.TxtMa.Text = objDMKH.Ma.Trim();
                    this.TxtTenViet.Text = objDMKH.TenViet.Trim();
                    this.TxtTenAnh.Text = objDMKH.TenAnh.Trim();
                    this.TxtGhichu.Text = objDMKH.GhiChu.Trim();
                    this.TxtDienThoai.Text = objDMKH.DienThoai.Trim();
                    this.TxtDiaChi.Text = objDMKH.DiaChi.Trim();
                    this.TxtEmail.Text = objDMKH.Email.Trim();
                    this.TxtFax.Text = objDMKH.Fax.Trim();
                    this.TxtHanNo.Value = objDMKH.GioiHanNo;
                    this.TxtHanThanhToan.Value = objDMKH.HanThanhToan;
                    this.TxtWebsite.Text = objDMKH.Website;
                    this.TxtMasoThue.Text = objDMKH.MaSoThue;
                    this.CboLoaiKhachHang.SelectedValue = objDMKH.KhoaLoaiKhachHang;
                    this.CboKhuVuc.SelectedValue = objDMKH.KhoaKhuVuc;
                    this.CboNganh.SelectedValue = objDMKH.KhoaNganh;
                    this.CboGiaban.SelectedValue = objDMKH.KhoaLoaiGia;
                    this.CboQuocGia.SelectedValue = objDMKH.KhoaQuocGia;
                    this.CboTinhThanh.SelectedValue = objDMKH.KhoaTinhThanh;
                    this.AdvNhanVien.Value = objDMKH.KhoaNhanVienQuanLy;
                    this.TxtDiaChiGiaoHang.Text = objDMKH.DiaChiGiaoHang.Trim();
                    if (objDMKH.Active == 1)
                    {
                        this.CKActive.CheckState = CheckState.Checked;
                    }
                    else
                    {
                        this.CKActive.CheckState = CheckState.Unchecked;
                    }
                    if (objDMKH.Loai.Trim().IndexOf("S") >= 0)
                    {
                        this.CKCungCap.CheckState = CheckState.Checked;
                    }
                    else
                    {
                        this.CKCungCap.CheckState = CheckState.Unchecked;
                    }
                    this.LoadLienHeDoiTuong();
                    this.LoadDiaChiGiaoHang(pKhoa);
                    objDMKH = null;
                }
            }
        }

        private void TxtDiaChi_LostFocus(object sender, EventArgs e)
        {
            if (this.TxtDiaChiGiaoHang.Text.Trim() == "")
            {
                this.TxtDiaChiGiaoHang.Text = this.TxtDiaChi.Text;
            }
        }

        private void TxtDiaChiGiaoHang_GotFocus(object sender, EventArgs e)
        {
            this.TxtDiaChiGiaoHang.SelectAll();
        }

        private void TxtDienThoai_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((Strings.Asc(e.KeyChar) >= 20) && (Strings.InStr("0123456789 .+()", e.KeyChar.ToString(), CompareMethod.Binary) == 0))
            {
                e.KeyChar = '\0';
            }
        }

        private void TxtFax_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((Strings.Asc(e.KeyChar) >= 20) && (Strings.InStr("0123456789 .+()", e.KeyChar.ToString(), CompareMethod.Binary) == 0))
            {
                e.KeyChar = '\0';
            }
        }

        private void TxtMa_KeyPress(object sender, KeyPressEventArgs e)
        {
            e.KeyChar = Conversions.ToChar(e.KeyChar.ToString().ToUpper());
        }

        private void TxtMasoThue_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((Strings.Asc(e.KeyChar) >= 20) && (Strings.InStr("0123456789- .", e.KeyChar.ToString(), CompareMethod.Binary) == 0))
            {
                e.KeyChar = '\0';
            }
        }

        private void VSDiaChi_AfterEdit(object sender, RowColEventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDiaChi[e.Row, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDiaChi[e.Row, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.VSDiaChi[e.Row, 0] = modGeneral.CreatKey("DM_DiaChiGiaoHang", 10, "");
                }
                this.objDMKH.SaveDiaChiGiaoHang(Conversions.ToString(this.VSDiaChi[e.Row, 0]), this.cFrmKhoa, Conversions.ToString(this.VSDiaChi[e.Row, 1]));
            }
        }

        private void VSDiaChi_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDiaChi[this.VSDiaChi.Row, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "0000000000")
            {
                e.Cancel = true;
            }
        }

        private void VSDoiTuongLienHe_DoubleClick(object sender, EventArgs e)
        {
            if ((this.VSDoiTuongLienHe.Rows.Count != 1) && (this.VSDoiTuongLienHe.Row > 0))
            {
                MyProject.Forms.Frm_DMLienHeDoiTuong.cFrmKhoa = Conversions.ToString(this.VSDoiTuongLienHe[this.VSDoiTuongLienHe.Row, 0]);
                MyProject.Forms.Frm_DMLienHeDoiTuong.cFrmKhoaDoiTuong = this.cFrmKhoa;
                MyProject.Forms.Frm_DMLienHeDoiTuong.ShowDialog();
                this.LoadLienHeDoiTuong();
            }
        }

        internal virtual ADVObjects AdvNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhanVien = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage3 = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid C1FlexGrid1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1FlexGrid1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1FlexGrid1 = value;
            }
        }

        internal virtual ComboBox CboGiaban
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboGiaban;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboGiaban = value;
            }
        }

        internal virtual ComboBox CboKhuVuc
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKhuVuc;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboKhuVuc = value;
            }
        }

        internal virtual ComboBox CboLoaiKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiKhachHang = value;
            }
        }

        internal virtual ComboBox CboNganh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNganh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboNganh = value;
            }
        }

        internal virtual ComboBox CboQuocGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboQuocGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboQuocGia_SelectedValueChanged);
                if (this._CboQuocGia != null)
                {
                    this._CboQuocGia.SelectedValueChanged -= handler;
                }
                this._CboQuocGia = value;
                if (this._CboQuocGia != null)
                {
                    this._CboQuocGia.SelectedValueChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboTinhThanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTinhThanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboTinhThanh = value;
            }
        }

        internal virtual CheckBox CKActive
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKActive;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKActive = value;
            }
        }

        internal virtual CheckBox CKCungCap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKCungCap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKCungCap = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddDiaChi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddDiaChi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddDiaChi_Click);
                if (this._CmdAddDiaChi != null)
                {
                    this._CmdAddDiaChi.Click -= handler;
                }
                this._CmdAddDiaChi = value;
                if (this._CmdAddDiaChi != null)
                {
                    this._CmdAddDiaChi.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRow_Click);
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click -= handler;
                }
                this._CmdAddRow = value;
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click += handler;
                }
            }
        }

        internal virtual Button CmdChiTiet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdChiTiet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdChiTiet = value;
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelDiaChi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelDiaChi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelDiaChi_Click);
                if (this._CmdDelDiaChi != null)
                {
                    this._CmdDelDiaChi.Click -= handler;
                }
                this._CmdDelDiaChi = value;
                if (this._CmdDelDiaChi != null)
                {
                    this._CmdDelDiaChi.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelRow_Click);
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click -= handler;
                }
                this._CmdDelRow = value;
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdFind = value;
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHelp_Click);
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click -= handler;
                }
                this._CmdHelp = value;
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual Button CmdRefesh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRefesh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdRefesh = value;
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnableControl
        {
            get
            {
                return this.mEnableControl;
            }
            set
            {
                this.mEnableControl = value;
                this.TxtMa.ReadOnly = !value;
                this.CmdAdd.Enabled = !value & this.mAllowAdd;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value & this.mAllowDel;
                this.CboKhuVuc.Enabled = value;
                this.CboNganh.Enabled = value;
                this.CboGiaban.Enabled = value;
                this.AdvNhanVien.ReadOnly = !value;
                this.CboLoaiKhachHang.Enabled = value;
                this.TxtTenViet.ReadOnly = !value;
                this.TxtTenAnh.ReadOnly = !value;
                this.TxtDiaChi.ReadOnly = !value;
                this.TxtDienThoai.ReadOnly = !value;
                this.TxtEmail.ReadOnly = !value;
                this.TxtFax.ReadOnly = !value;
                this.TxtHanNo.ReadOnly = !value;
                this.TxtHanThanhToan.ReadOnly = !value;
                this.TxtMasoThue.ReadOnly = !value;
                this.TxtGhichu.ReadOnly = !value;
                this.TxtWebsite.ReadOnly = !value;
                this.CKActive.Enabled = value;
                this.CmdAdd.Enabled = !value & this.mAllowEdit;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdAddRow.Enabled = !value & this.mAllowEdit;
                this.CmdDelRow.Enabled = !value & this.mAllowEdit;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.CmdExit.Enabled = !value;
                this.TxtDiaChiGiaoHang.ReadOnly = !value;
                this.CboQuocGia.Enabled = value;
                this.CboTinhThanh.Enabled = value;
                this.CKCungCap.Enabled = value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual GroupBox GroupBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox3 = value;
            }
        }

        internal virtual GroupBox GroupBox4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox4 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label12 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label15
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label15;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label15 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label17
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label17;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label17 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label21
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label21;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label21 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label38
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label38;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label38 = value;
            }
        }

        internal virtual Label Label39
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label39;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label39 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual TextBox TxtDiaChi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDiaChi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtDiaChi_LostFocus);
                if (this._TxtDiaChi != null)
                {
                    this._TxtDiaChi.LostFocus -= handler;
                }
                this._TxtDiaChi = value;
                if (this._TxtDiaChi != null)
                {
                    this._TxtDiaChi.LostFocus += handler;
                }
            }
        }

        internal virtual TextBox TxtDiaChiGiaoHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDiaChiGiaoHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtDiaChiGiaoHang_GotFocus);
                if (this._TxtDiaChiGiaoHang != null)
                {
                    this._TxtDiaChiGiaoHang.GotFocus -= handler;
                }
                this._TxtDiaChiGiaoHang = value;
                if (this._TxtDiaChiGiaoHang != null)
                {
                    this._TxtDiaChiGiaoHang.GotFocus += handler;
                }
            }
        }

        internal virtual TextBox TxtDienThoai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienThoai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                System.Windows.Forms.KeyPressEventHandler handler = new System.Windows.Forms.KeyPressEventHandler(this.TxtDienThoai_KeyPress);
                if (this._TxtDienThoai != null)
                {
                    this._TxtDienThoai.KeyPress -= handler;
                }
                this._TxtDienThoai = value;
                if (this._TxtDienThoai != null)
                {
                    this._TxtDienThoai.KeyPress += handler;
                }
            }
        }

        internal virtual TextBox TxtEmail
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtEmail;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtEmail = value;
            }
        }

        internal virtual TextBox TxtFax
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtFax;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                System.Windows.Forms.KeyPressEventHandler handler = new System.Windows.Forms.KeyPressEventHandler(this.TxtFax_KeyPress);
                if (this._TxtFax != null)
                {
                    this._TxtFax.KeyPress -= handler;
                }
                this._TxtFax = value;
                if (this._TxtFax != null)
                {
                    this._TxtFax.KeyPress += handler;
                }
            }
        }

        internal virtual TextBox TxtGhichu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtGhichu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtGhichu = value;
            }
        }

        internal virtual C1NumericEdit TxtHanNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtHanNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtHanNo = value;
            }
        }

        internal virtual C1NumericEdit TxtHanThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtHanThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtHanThanhToan = value;
            }
        }

        internal virtual TextBox TxtMa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                System.Windows.Forms.KeyPressEventHandler handler = new System.Windows.Forms.KeyPressEventHandler(this.TxtMa_KeyPress);
                if (this._TxtMa != null)
                {
                    this._TxtMa.KeyPress -= handler;
                }
                this._TxtMa = value;
                if (this._TxtMa != null)
                {
                    this._TxtMa.KeyPress += handler;
                }
            }
        }

        internal virtual TextBox TxtMasoThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMasoThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                System.Windows.Forms.KeyPressEventHandler handler = new System.Windows.Forms.KeyPressEventHandler(this.TxtMasoThue_KeyPress);
                if (this._TxtMasoThue != null)
                {
                    this._TxtMasoThue.KeyPress -= handler;
                }
                this._TxtMasoThue = value;
                if (this._TxtMasoThue != null)
                {
                    this._TxtMasoThue.KeyPress += handler;
                }
            }
        }

        internal virtual TextBox TxtTenAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenAnh = value;
            }
        }

        internal virtual TextBox TxtTenViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenViet = value;
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTuNgay = value;
            }
        }

        internal virtual TextBox TxtWebsite
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtWebsite;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtWebsite = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSDiaChi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSDiaChi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSDiaChi_BeforeEdit);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSDiaChi_AfterEdit);
                if (this._VSDiaChi != null)
                {
                    this._VSDiaChi.BeforeEdit -= handler;
                    this._VSDiaChi.AfterEdit -= handler2;
                }
                this._VSDiaChi = value;
                if (this._VSDiaChi != null)
                {
                    this._VSDiaChi.BeforeEdit += handler;
                    this._VSDiaChi.AfterEdit += handler2;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSDoiTuongLienHe
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSDoiTuongLienHe;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSDoiTuongLienHe_DoubleClick);
                if (this._VSDoiTuongLienHe != null)
                {
                    this._VSDoiTuongLienHe.DoubleClick -= handler;
                }
                this._VSDoiTuongLienHe = value;
                if (this._VSDoiTuongLienHe != null)
                {
                    this._VSDoiTuongLienHe.DoubleClick += handler;
                }
            }
        }
    }
}

